package com.example.test.mapper;



import com.example.test.entity.Rolerepos;
import org.apache.ibatis.annotations.Many;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleReposMapper {

    @Select("select * from rolerepos;")
    List<Rolerepos> findAll();

//    @Select("select * from rolerepos  ;")
//    @Results({
//            @Result(column = "id", property = "id"),
//            @Result(column = "role_id", property = "role_id"),
//            @Result(column = "repository_id",
//                    property = "repos",
//                    javaType = List.class,
//                    many = @Many(select = "")
//            )
//    })
//    List<Rolerepos> findByRoposId();
}
